package apis

import (
	"mallgo/internal/common/response"
	"mallgo/internal/resources/cart/api/domain/request"
)

type CartApi interface {
	// AddToCart 添加商品到购物车
	AddToCart(req *request.CartAddRequest) *response.ResponseObject

	// UpdateCart 更新购物车商品数量
	UpdateCart(req *request.CartUpdateRequest) *response.ResponseObject

	// DeleteCart 删除购物车商品
	DeleteCart(cartId int64) *response.ResponseObject

	// ListCart 获取购物车列表
	ListCart(userId int64) *response.ResponseObject

	// SelectCart 选中/取消选中购物车商品
	SelectCart(req *request.CartSelectRequest) *response.ResponseObject
}
